package com.paziy.jan.calc;

import com.paziy.jan.calc.literals.Computable;
import com.paziy.jan.calc.literals.Literal;
import com.paziy.jan.calc.literals.numbers.Num;
import com.paziy.jan.calc.literals.operations.Sum;
import com.paziy.jan.calc.literals.operations.associations.AssociatedFull;
import com.paziy.jan.calc.literals.operations.associations.Association;
import com.paziy.jan.calc.literals.operations.exeptions.WrongCountOfOperands;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.math.BigDecimal;
import java.util.LinkedList;
import java.util.regex.Pattern;

public class Tests {



    public static void main(String[] args) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
        //Method method = AssociatedFull.class.getMethod("getInstance");
        //AssociatedFull a = (AssociatedFull)method.invoke(null);
        //System.out.println(a);
        Pattern p1 = Pattern.compile("s");
        Pattern p2 = Pattern.compile("s");
        System.out.println(p1.getClass().getName() + "@" + Integer.toHexString(p1.hashCode()));
        System.out.println(p2.getClass().getName() + "@" + Integer.toHexString(p2.hashCode()));
        System.out.println(p1 == p2);

        Sum s = new Sum();

    }
}
